home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / SampleTestPlay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.2 KB  |  51 lines  |  [TEXT/KAHL]

  1. /* SampleTestPlay.h */
  2.  
  3. #ifndef Included_SampleTestPlay_h
  4. #define Included_SampleTestPlay_h
  5.  
  6. /* SampleTestPlay module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* SoundOutput */
  12. /* Memory */
  13. /* SampleWindow */
  14. /* SampleConsts */
  15. /* FixedPoint */
  16.  
  17. /* forward declarations */
  18. struct SampleWindowRec;
  19.  
  20. /* determine if one is in progress */
  21. MyBoolean                    SampleTestPlayInProgress(void);
  22.  
  23. /* determine if the sample is finished & we just need to clean up */
  24. MyBoolean                    SampleTestIsWaitingForCleanup(void);
  25.  
  26. /* call back which does all the work.  When sample is finished playing, it */
  27. /* will clean itself up and SampleTestPlayInProgress will return False. */
  28. void                            SampleTestPlayCallback(struct SampleWindowRec* TheWindow,
  29.                                         MyBoolean IgnoreMe);
  30.  
  31. /* find out if it is still playing the sample loop */
  32. MyBoolean                    SampleTestIsItLooping(void);
  33.  
  34. /* tell the thing to stop looping */
  35. void                            SampleTestBreakLoop(void);
  36.  
  37. typedef enum
  38.     {
  39.         eSampleTestNoError EXECUTE(= -18115),
  40.         eSampleTestNoSample,
  41.         eSampleTestCouldntOpenChannel
  42.     } SampleTestErrors;
  43.  
  44. /* see if an error occurred */
  45. SampleTestErrors    SampleTestDidErrorOccur(void);
  46.  
  47. /* clean up internal data structures */
  48. void                            SampleTestPlayCleanup(void);
  49.  
  50. #endif
  51.